package com.meevle.input
{
	import flash.events.Event;

	public class NoteEvent extends Event {
		
		public static const NOTE_ON : String = "noteOn";
		public static const NOTE_OFF : String = "noteOff";
		
		private var _velocity : Number;
		private var _pitch : int;
		
		public function NoteEvent(type:String, pitch : int, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this._pitch = pitch;
		}
		
		public function get pitch() : int 
		{
			return this._pitch;
		}
		
		public function set velocity(vel : Number) : void 
		{
			this._velocity = vel;
		}
		
		public function get velocity() : Number
		{
			return this._velocity;
		}
		
	}
}